/*
 * Copyright 2011 CraneLeeon authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.crane.webtemplate;

import java.text.SimpleDateFormat;

/**
 *
 * @author CraneLeeon
 */
public class FormatSpec {
    public static final SimpleDateFormat FORMATTER_DATE = new SimpleDateFormat("yyyy-MM-dd");
    public static final SimpleDateFormat FORMATTER_TIME = new SimpleDateFormat("HH:mm:ss");
    public static final SimpleDateFormat FORMATTER_DATETIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    public static final SimpleDateFormat FORMATTER_TIMESTAMP = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
    public static final SimpleDateFormat FORMATTER_INTEGER_DATETIME = new SimpleDateFormat("yyyyMMddHHmmss");
    public static final SimpleDateFormat FORMATTER_INTEGER_DATE = new SimpleDateFormat("yyyyMMdd");



    public static String getFORMATER_SPECSTR_DATE(){
        return FORMATTER_DATE.toPattern();
    }
    public static String getFORMATER_SPECSTR_TIME(){
        return FORMATTER_TIME.toPattern();
    }
    public static String getFORMATER_SPECSTR_DATETIME(){
        return FORMATTER_DATETIME.toPattern();
    }
    public static String getFORMATER_SPECSTR_TIMESTAMP(){
        return FORMATTER_TIMESTAMP.toPattern();
    }

    
}
